#!/usr/bin/env python
# coding: utf-8
import sys
sys.path.append('./Lib/')
from File_Operation import *
from ARCH_Operation import *
from BASDA_Operation import *
from event_path import *
from Print_Value import *
from Plot_Data_Operation import *

#np.set_printoptions(threshold=np.inf)
#pd.set_option('display.max_columns',None)
#pd.set_option('display.max_rows',None)








# begin code
file_name="sba_tb"
parton_pt="10"
event_kind=file_name+"_"+parton_pt
cut_file_name=sba_tb_cut.format(parton_pt)
nocut_file_name=sba_tb_no_cut
theoretical_parafile_name="../input_data/data/data_grid_{}.tsv".format(file_name)

if(file_name=="mh_mch"):
	df_para=["mh","mch"]
elif(file_name=="sba_tb"):
	df_para=["sba","tb"]

hotmap_out_file="../output_data/xection/xection_after_parton_cut_{fname}_{pt}.dat".format(fname=file_name,pt=parton_pt)
hotmap_variable_name="Parton_xection"


cut_cross=Cal_Parton_Cut_Xection(cut_file_name, nocut_file_name, theoretical_parafile_name)
Generate_Hotmap_Data(theoretical_parafile_name, df_para, cut_cross ,hotmap_out_file,hotmap_variable_name)
Generate_Multi_ARCH_Control_File(cut_cross, event_kind)
